package com.engine.impl;

import com.domain.Award;
import com.domain.Expression;
import com.engine.IRule;

public class SanHong implements IRule {
   private Award award;
    @Override
    public boolean evaluate(Expression e) {
        boolean result=false;
        if(e.getFour()==3){
            result=true;
            award=new Award("三红","");
        }
        return result;
    }

    @Override
    public Award getAward() {
        return award;
    }
}
